#ifndef ITEMVIEWDETAILSDIALOG_H
#define ITEMVIEWDETAILSDIALOG_H

#include <QtGui>
#include "core/itemmodel.h"
#include "core/stockcontroller.h"
#include "gui/stockview.h"

class ItemViewDetailsDialog : public QDialog
{
    Q_OBJECT
public:
    explicit ItemViewDetailsDialog(QWidget *parent, ItemModel *item);
    void setItem(ItemModel *item);

signals:

public slots:

private:
	void initDialogComponents();
    void initSignalsAndSlots();

	ItemModel *item;

    StockController *stockCtrl;

    QVBoxLayout *mainLayout;

    QLabel *headerLabel;
    QLabel *subHeaderLabel;

    QLabel *nameLabel;
    QLabel *codeLabel;
    QLabel *supplierLabel;
    QLabel *srpLabel;
    QGroupBox *stockBox;
    QVBoxLayout *stockLayout;
    StockView *stockView;
    QDialogButtonBox *buttonBox;
};

#endif // ITEMVIEWDETAILSDIALOG_H
